<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>girl</title>
</head>
<body>
    <style>
           @keyframes girl {
            from {
              background-position-x: -0px;
            }
            to {
                
                background-position-x: -1080px;
            }
        }
       div{
           width: 180px;
           height: 300px;
           animation-name: girl;
           animation-duration: 1s;
           animation-timing-function: steps(6);
           background-image: url(./img/girl.png);
           animation-fill-mode: forwards;
           animation-iteration-count: infinite; 
           animation-direction: reverse;
           animation-play-state:running ;
       }
    </style>
    <div></div>
</body>
</html>